@model NakedObjects.Architecture.Persist.ConcurrencyException
@using NakedObjects.Web.Mvc.Html

@{ 
 ViewBag.Title = "@(NakedObjects.Resources.MvcUi.ConcurrencyErrorTitle)"; 
}

@section MainContent { 
@(Html.History())   
    <div class="error">
        <img alt="error"  src="@(Url.Content("~/Images/concurrency-error.png"))"/>
	    <h2>@(NakedObjects.Resources.MvcUi.ConcurrencyErrorTitle)</h2>

	    <p>@(Model.Message)</p>

        @if (Model.SourceNakedObject != null) {
            <h3>@(NakedObjects.Resources.MvcUi.ConcurrencyErrorObject):</h3>
            @(Html.Object(Html.ObjectTitle(Model.SourceNakedObject.Object).ToString(), IdHelper.ViewAction, Model.SourceNakedObject.Object))
        }
    </div> 
}
